import resolve from "@rollup/plugin-node-resolve";
import commonjs from "@rollup/plugin-commonjs";
import typescript from "@rollup/plugin-typescript";

export default {
  input: "src/index.ts",
  output: [
    {
      file: "dist/index.cjs",
      format: "cjs",
      exports: "auto"
    },
    {
      file: "dist/index.mjs",
      format: "es"
    },
    {
      file: "dist/index.umd.js",
      format: "umd",
      name: "LinkLinkXYK",
      exports: "auto"
    }
  ],
  plugins: [
    resolve(),
    commonjs(),
    typescript({ tsconfig: "./tsconfig.json" })
  ]
};
